import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'main',
      component: () => import('../views/MainView.vue'),
      children: [
        {
          path: '',
          name: 'home',
          component: () => import('../views/HomePageView.vue'),
        },
        {
          path: '/log',
          name: 'log',
          component: () => import('../views/LogView.vue'),
        },
        {
          path: '/homepage',
          name: 'homepage',
          component: () => import('../views/HomePageView.vue'),
        },
        {
          path: '/studentselect',
          name: 'studentselect',
          component: () => import('../views/StudentSelectView.vue'),
        },
        {
          path: '/studententry',
          name: 'studententry',
          component: () => import('../views/StudentEntryView.vue'),
        }
      ]
    }
  ]
})

export default router